fork:01_fork.c 
	-gcc $^ -o $@
	-./$@
	-rm $@
other:02_other.c 
	-gcc $^ -o $@

execve: 02_execve.c other
	-gcc $< -o $@
	-./$@
	-rm $@ $(word 2, $^)
waitpid: 03_waitpid.c 
	-gcc $^ -o $@
	-./$@
	-rm $@ 
pipe: 04_pipe.c 
	-gcc $^ -o $@
	-./$@
	-rm $@ 
share_memory: 05_share_memory.c 
	-gcc $^ -o $@
	-./$@
	-rm $@ 
shm_block: 05_shm_block.c 
	-gcc $^ -o $@
	-./$@
	-rm $@ 
mqueue: 06_mqueue.c 
	-gcc $^ -o $@
	-./$@
	-rm $@ 
producer: 07_producer.c
	gcc -o $@ $^
consumer: 07_consumer.c
	gcc -o $@ $^

.PHONY=pc_mq
pc_mq: producer consumer
rm_qc_mq:
	rm producer consumer
signal: 08_signal.c 
	-gcc $^ -o $@
	-./$@
	-rm $@ 
shm: 09_shm.c 
	-gcc $^ -o $@
	-./$@
	-rm $@ 
shm_count: 10_sem_count.c 
	-gcc $^ -o $@
	-./$@
	-rm $@ 
